﻿using Abp.AutoMapper;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace FutureApp.Shop.Dto
{
    /// <summary>
    /// 创建商品输入参数DTO
    /// </summary>
    public class CreateGoodsInput
    {
        /// <summary>
        /// 商品货号
        /// </summary>
        [Required(ErrorMessage = "商品货号不能为空")]
        [StringLength(GoodsItem.MaxSerialNoLength)]
        public string SerialNo { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        [Required(ErrorMessage = "商品名称不能为空")]
        [StringLength(GoodsItem.MaxNameLength)]
        public string Name { get; set; }

        /// <summary>
        /// 商品品牌
        /// </summary>
        [Required]
        public Guid BrandId { get; set; }

        /// <summary>
        /// 商品分类
        /// </summary>
        [Required]
        public Guid CategoryId { get; set; }

        /// <summary>
        /// 商品模型
        /// </summary>
        [Required]
        public Guid MouldId { get; set; }
        
        /// <summary>
        /// 商品SKU列表
        /// </summary>
        public ICollection<CreateGoodsSKUInput> SKUs { get; set; }        
    }
}
